package org.example.json.valueobject;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.example.json.inspect.Probe;

import java.math.BigDecimal;

@Getter
@EqualsAndHashCode
public class Product {
    private long id;
    private String code;
    private String name;
    private BigDecimal price;

    public Product(long id, String code, String name, BigDecimal price) {
        Probe.run(Product.class, id, code, name, price);
        this.id = id;
        this.code = code;
        this.name = name;
        this.price = price;
    }
}
